<template>
  <!-- 显示图片 -->
  <el-dialog :visible.sync="isImgShow" width="50%" append-to-body>
    <img :src="src" style="width: 100%" />
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      src: '',
      isImgShow: false
    };
  },
  methods: {
    show(src) {
      this.src = src
      this.isImgShow = true
    }
  }
};
</script>
<style lang="scss" scoped>

</style>